package cn.huiyunche.base.service.interfaces;


import cn.huiyunche.base.service.model.BDistanceBetweenAddresses;

import java.math.BigDecimal;

/**
 * The interface B distance between addresses service.
 *
 * @FileName: cn.huiyunche.app.service.interfaces
 * @Description: 地址间距离
 * @author: Aaron
 * @date: 2016 /12/1 下午12:03
 */
public interface BDistanceBetweenAddressesService {

    /**
     * Add long.
     *
     * @param addresses the addresses
     * @return the int
     */
    int add(BDistanceBetweenAddresses addresses);

    /**
     * Gets distance by longitude and latitude.
     *
     * @param depaLongitudeAndLatitude the depa longitude and latitude
     * @param destLongitudeAndLatitude the dest longitude and latitude
     * @return the distance by longitude and latitude
     */
    BigDecimal getDistanceByLongitudeAndLatitude(String depaLongitudeAndLatitude, String destLongitudeAndLatitude);
}
